function fun(x: number, y?: number): void {
    console.log(x.toFixed(2))
    if (y !== undefined) {
        console.log(y.toFixed(2))
    }
}

fun(10)


const foo = (x: number, ...args: string[]) => {
    args.forEach(item => {
        console.log(item)
    })
}

foo(1, '2', '3', '4', '5', '6', '7', '8', '9', '10')
